package com.trade.wzj.service.yang.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.trade.wzj.dao.yang.StateDaoYang;
import com.trade.wzj.model.xiang.State;
import com.trade.wzj.service.yang.StateServiceYang;

@Service("StateServiceYang")
public class StateServiceImplYang implements StateServiceYang {
	
	@Autowired
	@Qualifier("StateDaoYang")
	private StateDaoYang stateDaoYang;

	/**
	 * 查询所有状态信息
	 */
	@Override
	public List<State> findState() throws Exception {
		List<State> list = null;
		try {
			list = stateDaoYang.findState();
		} catch (Exception e) {
			e.printStackTrace();
			throw new Exception();
		}
		return list;
	}

}
